{% extends '::base.html.twig' %}

{% block contenido %}

<div class="panel panel-default" style="width:90%;" align="c">
		<div class="panel-heading">
			<h3 class="panel-title">Listados de Cupos Anuales.</h3>
		</div>
			<div class="panel-body">
                            
                                  <div class="table-responsive">
                                    <table class="table table-striped">
                                      <thead>
                                       <tr>
                                        <th>Descripción</th>
                                        <th style="text-align: center;">Año</th>
                                        <th style="text-align: right;">Monto</th>
                                        <th style="text-align: center;">Activo</th>
                                        <th style="text-align: center;">Acción</th>
                                       </tr>
                                      </thead>

                                      <tbody>
                                        {% for entity in entities %}
                                          <tr>
                                            <td>{{ entity.Descripcion }}</td>
                                            <td align="center">{{ entity.Anio }}</td>
                                            <td align="right">${{ entity.Monto|number_format(2, ',','.') }}</td>
                                            <td align="center">
                                                {% if entity.Activo == 1 %}
                                                Activo
                                                {% else %}
                                                Inactivo
                                                {% endif %}
                                            </td>
                                            <td align="center">
                                                <div class="btn-group">
							<button class="btn btn-info" type="button">Acciones</button>
										
								<button class="btn btn-info dropdown-toggle" data-toggle="dropdown" type="button">
								<span class="caret"></span>
								<span class="sr-only">Toggle Dropdown</span>
								</button>
										
                                                                    <ul class="dropdown-menu" role="menu">
									<li>
                                                                            <a href="javascript:void(0)" class="varcliente" id="<? echo $row[0]; ?>">Modificar</a>
									</li>
									<li>
                                                                            <a href="javascript:void(0)" class="varescena" id="<? echo $row[0]; ?>">Ver</a>
									</li>
                                                                    </ul>
						</div>
                                            </td>
                                          </tr>
                                        {% endfor %}
                                      </tbody>
                                    </table>
 
                              </div>
                        </div>
</div>
{% endblock %}
